//
//  MyPickerViewController.h
//  Ghac 4S
//
//  Created by apple on 11-11-23.
//  Copyright (c) 2011年 __MyCompanyName__. All rights reserved.
//

#import <UIKit/UIKit.h>
@class MyPickerViewController;
@protocol MyPickerViewControllerDelegate <NSObject>
-(void)myPickerViewSelectedIndex:(NSInteger)selectedIndex inComponment:(NSInteger)componment;
-(void)myPickerViewChanged:(NSArray*)allIndex;
@end




@interface MyPickerViewController : UIViewController <UIPickerViewDelegate, UIPickerViewDataSource>
{
    NSMutableArray*                             m_array;
    SEL                                         m_sector;
    id<MyPickerViewControllerDelegate>          delegate;
    NSInteger                                   m_selectedRow;
    NSInteger                                   m_component;
    BOOL                                        m_isAnimated;
}
@property (nonatomic, retain) IBOutlet UIPickerView*                        pickerView;
@property (nonatomic, retain) IBOutlet UIToolbar*                           toolBar;
@property (nonatomic, retain) id<MyPickerViewControllerDelegate>            delegate;
-(IBAction)doSelected:(id)sender;
-(void)selectRow:(NSInteger)row inComponent:(NSInteger)component animated:(BOOL)animated;
-(void)doSelectedSector:(SEL)sector;
-(void)viewAnimationStop:(id)sender;
-(void) setDataWithArrays:(NSArray*)array,...;
-(void)show;
-(void)hide;
@end


